package com.falcon.service;

import com.falcon.domain.dos.QuestionOptionDO;
import com.falcon.domain.req.QuestionOptionRequest;
import com.falcon.domain.req.QuestionOptionQuery;
import com.falcon.mvc.domain.BasePager;

import java.util.List;

public interface IQuestionOptionService {

    Long save(QuestionOptionRequest request);

    Boolean update(Long id, QuestionOptionRequest request);

    Boolean deleteById(Long id);

    QuestionOptionDO queryById(Long id);

    List<QuestionOptionDO> queryList(QuestionOptionQuery request);

    BasePager<QuestionOptionDO> queryPager(QuestionOptionQuery request);

    int batchDelete(List<Long> ids);

    void deleteByQuestionIds(List<Long> questionId);

    void batchSave(Long questionId, List<QuestionOptionRequest> optionRequestList);
}

